<?php
$baseUrl = Yii::app()->theme->baseUrl;
$cs = Yii::app()->getClientScript();
$cs->registerScriptFile($baseUrl . '/plugins/select2/select2.js');
$cs->registerScriptFile($baseUrl . '/plugins/select2/select2_locale_es.js');
$cs->registerCssFile($baseUrl . '/plugins/select2/select2.css');
$cs->registerCssFile($baseUrl . '/plugins/select2/select2-bootstrap.css');
$modelEmpresas = new Entidad;
?>
<script>
    var opcion_open = false;
    $(function() {
        $("#btnBusquedaGoogle").on('click', function() {
            console.log(opcion_open);
            if (opcion_open == true) {
                opcion_open = false;
                $("#opciones-busqueda-google-formulario").attr('style', "left: -499px;");
            }
            else if (opcion_open == false) {
                opcion_open = true;
                $("#opciones-busqueda-google-formulario").attr('style', "left: 40px;");
            }
        });
    });

</script>
<style type="text/css">
    #searchMeet {
        margin-top: 9px;

    }

</style>
<div class="container-fluid">

    <div class="row-fluid" >
        <div class="col-md-12">
            <?php $this->renderPartial('portlets/_mapaEmpresas', array('points' => $points)) ?>
        </div>
    </div>

</div>
<div class="section clearfix">

    <div class="container">
        <div class="row">
            <div class="col-md-12">

                <h2>Empresas Registradas</h2>
                <div class="separator-2"></div>
                <p>Conocelas</p>
                <div class="owl-carousel carousel">
                    <?php
                    foreach ($imagenes_empresas as $value) {
                        echo ' <div class="image-box object-non-visible" data-animation-effect="fadeInLeft" data-effect-delay="300">';
                        echo '<div class="overlay-container">';
                        echo ' <img  src = "' . $value['src'] . '" alt = "Touch">';
                        echo '<a href = "portfolio-item.html" class = "overlay small">';
                        echo ' <i class="fa fa-link"></i>';
                        echo ' <span>Informacion Detallada</span>';
                        echo '    </a>';
                        echo '   </div>'; //overlay-container
                        echo '<a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">' . $value["empresa"] . '</a>';

                        echo '   </div>'; //image-box object-non-visible
                    }
                    ?>  


                    <div class="image-box object-non-visible" data-animation-effect="fadeInLeft" data-effect-delay="300">
                        <div class="overlay-container">
                            <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/portfolio-1.jpg" alt="">
                            <a href="portfolio-item.html" class="overlay small">
                                <i class="fa fa-link"></i>
                                <span>Web Design</span>
                            </a>
                        </div>
                        <a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">Project Title</a>
                    </div>
                    <div class="image-box object-non-visible" data-animation-effect="fadeInLeft" data-effect-delay="200">
                        <div class="overlay-container">
                            <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/portfolio-2.jpg" alt="">
                            <a href="portfolio-item.html" class="overlay small">
                                <i class="fa fa-link"></i>
                                <span>Web Design</span>
                            </a>
                        </div>
                        <a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">Project Title</a>
                    </div>
                    <div class="image-box object-non-visible" data-animation-effect="fadeInLeft" data-effect-delay="100">
                        <div class="overlay-container">
                            <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/portfolio-3.jpg" alt="">
                            <a href="portfolio-item.html" class="overlay small">
                                <i class="fa fa-link"></i>
                                <span>Web Design</span>
                            </a>
                        </div>
                        <a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">Project Title</a>
                    </div>
                    <div class="image-box object-non-visible" data-animation-effect="fadeInLeft" data-effect-delay="0">
                        <div class="overlay-container">
                            <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/portfolio-4.jpg" alt="">
                            <a href="portfolio-item.html" class="overlay small">
                                <i class="fa fa-link"></i>
                                <span>Web Design</span>
                            </a>
                        </div>
                        <a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">Project Title</a>
                    </div>
                    <div class="image-box">
                        <div class="overlay-container">
                            <img     src="http://owlgraphic.com/owlcarousel/assets/img/demo-slides/tons.png">
                       
                            <a href="portfolio-item.html" class="overlay small">
                                <i class="fa fa-link"></i>
                                <span>Web Design</span>
                            </a>
                        </div>
                        <a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">Project Title</a>
                    </div>
                    <div class="image-box">
                        <div class="overlay-container">
                            <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/portfolio-6.jpg" alt="">
                            <a href="portfolio-item.html" class="overlay small">
                                <i class="fa fa-link"></i>
                                <span>Web Design</span>
                            </a>
                        </div>
                        <a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">Project Title</a>
                    </div>
                    <div class="image-box">
                        <div class="overlay-container">
                            <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/portfolio-7.jpg" alt="">
                            <a href="portfolio-item.html" class="overlay small">
                                <i class="fa fa-link"></i>
                                <span>Web Design</span>
                            </a>
                        </div>
                        <a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">Project Title</a>
                    </div>
                    <div class="image-box">
                        <div class="overlay-container">
                            <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/portfolio-8.jpg" alt="">
                            <a href="portfolio-item.html" class="overlay small">
                                <i class="fa fa-link"></i>
                                <span>Web Design</span>
                            </a>
                        </div>
                        <a href="portfolio-item.html" class="btn btn-light-gray btn-lg btn-block">Project Title</a>
                    </div>
                </div>

            </div>
        </div>
    </div>

</div>
<div class="section clearfix">
    <div class="row-fluid" >
        <?php // $this->renderPartial('portlets/_view_logosEmpresa', array('imagenes_empresas' => $imagenes_empresas)) ?>

    </div>
</div>

